package com.yupi.springbootinit.service;

import com.yupi.springbootinit.model.dto.site.SiteUpdateRequest;
import com.yupi.springbootinit.model.entity.Site;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;

/**
* @author Lenovo
* @description 针对表【site(场地信息表)】的数据库操作Service
* @createDate 2024-04-27 13:30:49
*/
public interface SiteService extends IService<Site> {
    /**
     * 新增场地
     * @param siteName
     * @param belongs
     * @param siteArea
     * @param sitetMain
     * @return
     */
    Site addSite(Integer siteName, Integer belongs, Integer siteArea, String sitetMain);

    boolean updateFreeTime(SiteUpdateRequest site) throws ParseException;

    List<Site> getAllSite(HttpServletRequest request);
}
